#include <stdio.h>
#include "lcv/log.h"

void test_log()
{
	printf("writing into logfile... ");
	fflush(stdout);
	lcv_log("Framework-Test\nstarted...\n");
	lcv_log_error("Test Entry", __FUNCTION__);
	lcv_log_warning("Test Entry", __FUNCTION__);
	printf("ok\n");
	
	printf("disable logging... ");
	lcv_logging(FALSE);
	printf("ok\n");
	
	printf("logging an entry wich must not be written to the logfile... ");
	fflush(stdout);
	lcv_log("This entry must not be written to the logfile");
	printf("ok\n");
	
	printf("enable logging... ");
	lcv_logging(TRUE);
	printf("ok\n");
}
